import request from '@/utils/request'
// 删除月卡
export function delCardAPI(ids) {
  return request({
    url: `/parking/card/${ids}`,
    method: 'delete'
  })
}
// 编辑页月卡详情
export function editCardAPI(data) {
  return request({
    url: `/parking/card/edit`,
    method: 'put',
    data
  })
}
// 获取查看页月卡详情
export function getCardDetailAPI(id) {
  return request({
    url: `/parking/card/detail/${id}`,
    method: 'get'
  })
}
// 获取月卡列表信息
export function getCardListAPI(params) {
  return request({
    url: '/parking/card/list',
    method: 'get',
    params
  })
}
// 添加月卡
export function addCardAPI(data) {
  return request({
    url: '/parking/card',
    method: 'post',
    data
  })
}
